/* 全局样式 */
:root {
    --primary-color: #3a5c40;
    --secondary-color: #8b9d77;
    --accent-color: #d4af37;
    --background-color: #f5f5f5;
    --text-color: #333;
    --border-color: #ddd;
    --danger-color: #c93c3c;
    --success-color: #4caf50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

button {
    cursor: pointer;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--secondary-color);
}

button.active {
    background-color: var(--accent-color);
    color: var(--text-color);
}

h2, h3, h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* 游戏容器 */
#game-container {
    display: flex;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* 隐藏元素 */
.hidden {
    display: none !important;
}

/* 弹窗样式 */
#modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

#modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

/* 详情面板 */
.detail-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.panel-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.panel-close:hover {
    color: #000;
}
    overflow-y: auto;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* 标签页 */
.tab-container {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
}

.tab.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 进度条 */
.progress-container {
    margin: 15px 0;
}

.progress-bar {
    height: 20px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 5px;
}

.progress-bar > div {
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.5s;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #game-container {
        flex-direction: column;
    }
    
    .detail-panel {
        width: 95%;
    }
}